import java.util.ArrayList;


public class Player {
	
	//var
	
	private String name;
	private ArrayList<Card> hand;
	private int score;
	
	
	
	
	//con
		public Player(String names) {
			this.name = names;
			hand = new ArrayList<Card>();
			score = 0;
			
		}
	
	
	
	//meth
	
	
	public void getHand(Card asdf) {
		hand = new ArrayList<Card>();
		hand.add(asdf);
		
	}
	
	public int getScore() {
	
		/**
		for(int i=0;i<hand.size();i++) {
			score += hand.get(i).getValue();
		}
		**/
		return score;
	}
	
	
	public void hit(Card qwe) {
		
		hand.add(qwe);
		score += qwe.getValue();
	}
	
	public String toString() {
		return "Name: " + name + "\nHand : " + hand.toString() + "\nScore: " + score;
	}
	
	public String named() {
		return name;
	}
	
	public int nope() {
		score = 0;
		return score;
	}
	 public String handed() {
		return "Hand : " + hand.toString() + "\nScore: " + score;
	 }
	
	
	
	
	
}
